<template>
  <div class="main">
    <div class="main-block">
      <div class="main-picture">
        <img :src="obj.img" alt="" />
        <!-- <img :src="v.img | fliterImg" /> -->
      </div>
      <div class="wrap">
        <div class="column">
          <h1 class="title">{{obj.name}}</h1>
          <div class="box-flex">剧情</div>
          <div class="score">{{obj.filmdate}}</div>
        </div>
      </div>
      <div class="ticket1">
        <div class="ticket">
          <span>购票</span>
        </div>
      </div>
    </div>
    <div class="bottom">
      <div class="public">
        <img
          class="picture"
          src="https://s0.meituan.net/bs/myfe/canary/file/asgard/images/avatar.png"
          alt=""
        />
        <span>猫眼购票评分</span>
      </div>
    </div>
    <div class="bottom">
      <!-- <div class="score-container">
        <span class="score-text">9.5</span>
        <img class="noneBg" alt="" src="../../../public/images/star.png" />
        <img class="noneBg" alt="" src="../../../public/images/star.png" />
        <img class="noneBg" alt="" src="../../../public/images/star.png" />
        <img class="noneBg" alt="" src="../../../public/images/star.png" />
      </div> -->
      <div class="score-container">
        <span class="score-text">9.5</span>
        <van-rate v-model="value" allow-half void-icon="star" void-color="#beb1b1"  color="#ffb400" size=".25rem"/>
      </div>
      <div class="top1">
        <img src="../../../public/images/排名.png" alt="" />
        <span @click="$router.push('/boardAll')">中国大陆票房榜Top1></span>
      </div>
    </div>
    <p></p>
  </div>
</template>

<script>
export default {
   data() {
    return {
      value: 4.5,
    };
  }, 
  
   computed:{
    obj(){
      return JSON.parse(window.sessionStorage.getItem('detailImageName'))
    }
  }
  
};
</script>
<style scoped>
.main {
  background: #fff;
}
.main-block {
  padding-left: 0.3rem;
  padding-top: 0.2rem;

  display: flex;
  justify-content: space-between;
  position: relative;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
}
.main-picture img {
  width: 1.5rem;
  height: 1.87rem;
  padding-bottom: 0.2rem;
}

.wrap {
  width: 4.3rem;
  margin-left: 0.2rem;
  padding-bottom: 0.2rem;
}

.column .title {
  font-size: 0.35rem;
  font-weight: 700;
}
.actor {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.08rem 0;
}

.box-flex {
  color: #8c7e7e;
  margin: 0.1rem 0;
}
.score {
  color: #8c7e7e;
}
.detail {
  color: #666666;
}

.grade {
  color: #faaf00;
  font-size: 0.3rem;
}
.ticket1 {
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 0.2rem;
}
.ticket {
  margin-right: 0.2rem;
  margin-top: 0.4rem;
  width: 1rem;
  height: 0.6rem;
  color: white;
  text-align: center;
  border-radius: 14%;
  line-height: 0.6rem;
  font-size: 0.25rem;
}
.ticket span {
  display: inline-block;
  background: red;
  width: 1rem;
  height: 0.7rem;
  color: white;
  text-align: center;
  border-radius: 37%;
  line-height: 0.7rem;
  font-size: 0.25rem;
}
.bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0.3rem 0 0.3rem;
}
.public {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.picture {
  width: 0.36rem;
  height: 0.36rem;
}
.bottom span {
  font-size: 0.3rem;
  color: #333;
  line-height: 0.42rem;
  font-weight: 500;
  margin-left: 0.08rem;
}
.score-container .score-text {
  font-size: 0.36rem;
  /* line-height: 0.5rem; */
  margin-left: 0.08rem;
  color: #faaf00;
  font-weight: 600;
  margin-right: 0.12rem;
}
/* .noneBg {
  width: 0.2rem;
  height: 0.2rem;
  margin-right: 0.04rem;
} */
.top1 {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  max-width: 65%;
}
.top1 img {
  width: 0.28rem;
  height: 0.28rem;
}
.top1 span {
  color: red;
}
p {
  height: 0.9rem;
}
</style>